<?php
/*
 * Created on 8 Aug 2007
 *
 * @author Constantine Didenko
 *
 * ToDo: this file should be changed into dynamic class loader!!!
 *
 */

	include_once 'global-variables.php';
	include_once 'services-handler.php';
	include_once 'utils.php';

# Subject to remove begin

	include_once 'deprecated/Errors.php';
	include_once 'deprecated/PostData.php';
	include_once 'deprecated/PostForm.php';
	include_once 'deprecated/PostCaptions.php';
	include_once 'deprecated/PostFilter.php';
	include_once 'deprecated/DBService.php';

	include_once 'headers.php';
	include_once 'post_functions.php';
# Subject to remove end

# Core Objects begin
	include_once 'com/ito/core/Item.php';
	include_once 'com/ito/core/Post.php';
# Core Objects end

# Services begin
	include_once 'com/ito/services/settings/GlobalSettings.php';
	include_once 'com/ito/services/general/MappingService.php';
	include_once 'com/ito/services/cities/CitiesService.php';
	include_once 'com/ito/services/news/NewService.php';
# Services end

	include_once 'com/ito/components/BaseComponent.php';
	include_once 'com/ito/components/andvertisement/GoogleAddSense.php';
	include_once 'com/ito/components/andvertisement/YandexDirect.php';
	include_once 'com/ito/components/google/GoogleAnalytics.php';
	include_once 'com/ito/components/cities/CitiesComponent.php';

	include_once 'com/ito/util/Properties.php';
	include_once 'com/ito/realestate/cities/City.php';

#mapping models begin
	include_once 'com/ito/models/BaseMappingModel.php';
#mapping models end

#data models begin
	include_once 'com/ito/models/SearchAnltModel.php';
	include_once 'com/ito/models/MetaModel.php';
#data models end

# DB tools start
	include_once 'com/ito/db/DBHandler.php';
# DB tools end

# rss start
	include_once 'com/ito/rss/RssHandler.php';
	include_once 'com/ito/rss/RssImport.php';
# rss end

############ initialization section start ############
//initializing Global Settings
	$settings = &getService('GlobalSettings');
//initializing DB handler
	$dbHandler = DBHandler::getInstance();
	$dbHandler->setDB($settings->get('db_name'));
	$dbHandler->setHost($settings->get('db_host'));
	$dbHandler->setUsername($settings->get('db_username'));
	$dbHandler->setPassword($settings->get('db_password'));
############  initialization section end  ############
?>
